package com.lemon.smartsafety.ui.activity.safe.data;

import android.os.Bundle;
import android.support.v4.app.Fragment;

import com.lemon.smartsafety.R;
import com.lemon.smartsafety.app.BundleKey;
import com.lemon.smartsafetynew.ui.activity.base.BaseFragmentActivity;
import com.lemon.smartsafety.ui.fragment.safe.data.SafeDataCollectionBuildingTypeListFragment;
import com.lemon.smartsafety.utils.common.LoggerHelper;

/**
 * Created by Cooliean on 16/1/24.
 * 安全巡查 建筑场所分类
 */
public class SafeDataCollectionBuildingTypeListActivity extends BaseFragmentActivity {
    private LoggerHelper loggerHelper = new LoggerHelper(SafeDataCollectionBuildingTypeListActivity.class);

    private SafeDataCollectionBuildingTypeListFragment mFragment;

    private String mOldValue = null;

    @Override
    protected void getBundleArgs() {
        super.getBundleArgs();
        if (getIntent().getExtras() != null) {
            mOldValue = getIntent().getStringExtra(BundleKey.OLD_SELECT_VALUE);
        }
    }

    @Override
    protected void initViews() {
        super.initViews();
    }

    @Override
    public Fragment getFragment() {
        Bundle bundle = new Bundle();
        if (null != mOldValue) {
            bundle.putString(BundleKey.OLD_SELECT_VALUE, mOldValue);
        }
        mFragment = SafeDataCollectionBuildingTypeListFragment.newInstance();
        mFragment.setArguments(bundle);
        return mFragment;
    }


    @Override
    protected void initTitle() {
        this.setBarTitle(R.string.build_prop_type_list);
    }

}
